﻿using Transformable_Engine_v2.Engine.GameObjects.Containers;
using Transformable_Engine_v2.Engine.Helper;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Super_Management_Mayhem.Screens.Playing.Particle.RandomObjectExplosion
{
    public class RandomObjectExplosion : Container
    {
        public RandomObjectExplosion()
        {
            for (int i = 0; i < 10; i++)
            {
                //AddChildren(new Smoke(new TE_Vector2((i / 10.0 + Randomizer.Double(0, 0.1)).TimesTwoPi())));
                AddChildren(new CenterSmoke(new TE_Vector2((i / 10.0 + Randomizer.Double(0, 0.1)).TimesTwoPi())));
            }

            for (int i = 0; i < 7; i++)
            {
                AddChildren(new Shard(i, new TE_Vector2((i / 7.0).TimesTwoPi())));
            }

            Die(2000);
        }
    }
}